<?php
App::uses('AppModel', 'Model');
class Support extends AppModel {

	public $name = 'Support';
 	public $useTable = 'support';

 	public function getAllSupport(){
 		try{
 			$results = $this->query(
 					"SELECT id,name,yahoo,skype,hotline
					FROM support
					WHERE active = 1 AND del_flg = 0
					ORDER BY create_time DESC");
 			return  $results;

 		} catch (Exception $e) {
 			throw new NotFoundException(__('Invalid category'));
 		}
 	}
}